package com.sun.jdk.stream;

import java.util.stream.Stream;

/**
 * Stream接口的常用方法
 */
public class StreamTest05ForEach {
    public static void main(String[] args) {
        
        // 1. forEach方法
        Stream.of("a1", "a2", "a3").forEach(System.out::println);
        
    }
}
